package com.chaofan.sell.repository;

import com.chaofan.sell.entity.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 订单详情
 *
 * @author: Fairy
 * @date: 2021/9/6
 */
public interface OrderDetailRepository extends JpaRepository<OrderDetail, String> {

    /**
     * 通过订单id查询详情
     *
     * @param orderId 订单id
     * @return 详情列表
     */
    List<OrderDetail> findByOrderId(String orderId);
    
}
